<!DOCTYPE html>

<html>
    <head>
        <meta charset="UTF-8">
        <title>漂亮的文件上传组件</title>
        <link rel="stylesheet" href="file-upload.css">
    </head>
    <body>

        <form action="http://localhost:8080/upload" method="post">
            <input type="file" name="upfile" >
            <button type="submit">上传</button>
        </form>

        <hr>

        <form action="http://localhost:8080/upload" method="post">
            <div class="file-upload-container">
                <input type="file" name="upfile" >
                <div class="file-selector">点击这里选择文件</div>
                <div class="file-upload-button">上传</div>
            </div>
        </form>

        <script src="file-upload.js"></script>
        
    </body>
</html>